package com.game.worm.mobile;

import android.app.Application;
import android.content.Context;

import com.dx.as.JWApplication;
import com.dx.as.image.ImageLoaderKit;
import com.dx.as.listener.ActivityLifecycleListener;
import com.game.worm.mobile.view.GameHelper;
import com.umeng.commonsdk.UMConfigure;

import cn.jpush.android.api.JPushInterface;

/**
 * Created by d_xxiang on 2018/3/23.
 */

public class MyApplaction extends JWApplication{

    @Override
    public void onCreate() {
        super.onCreate();
        JPushInterface.setDebugMode(true);
        JPushInterface.init(this);
        UMConfigure.init(this, "5ab87284f29d984fbd0000ab", "Umeng", UMConfigure.DEVICE_TYPE_PHONE, null);
        registerUiListener();
        new ImageLoaderKit(this,null);
        GameHelper.init(this);
    }

    private void registerUiListener(){
        ActivityLifecycleListener lifecycleListener = new ActivityLifecycleListener(this);
        registerActivityLifecycleCallbacks(lifecycleListener);
    }
}
